package cyou.breathe.blog.email.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author: breathe
 * @createTime: 2025-08-26
 */
@ConfigurationProperties(prefix = EmailProperties.PREFIX)
public class EmailProperties {
    public static final String PREFIX = "spring.email";

    public String user;

    public String code;

    public String host;

    public boolean auth;

    public int port;

    public boolean smtpSslEnable;

    public boolean isSmtpSslEnable() {
        return smtpSslEnable;
    }

    public void setSmtpSslEnable(boolean smtpSslEnable) {
        this.smtpSslEnable = smtpSslEnable;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public boolean isAuth() {
        return auth;
    }

    public void setAuth(boolean auth) {
        this.auth = auth;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }
}